package com.yangrui.app.mapper;

import com.yangrui.app.entity.PlayRecord;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.springframework.stereotype.Repository;

@Repository
public interface PlayRecordMapper {

    @Insert("insert into lesson.play_record(user_id, video_id, current_num, episode_id)" +
            "values(#{userId},#{videoId},#{currentNum},#{episodeId})")
    int insert(PlayRecord playRecord);

    @Delete("delete from lesson.play_record where id = #{param1}")
    int deleteById(Integer integer);


}
